package priority_queue;

public class MaxHeapTest {

    public static void main(String[] args) {
        MaxHeap maxHeap=new MaxHeap();
        maxHeap.add(62);
        maxHeap.add(41);
        maxHeap.add(30);
        maxHeap.add(28);
        maxHeap.add(16);
        maxHeap.add(22);
        maxHeap.add(13);
        maxHeap.add(19);
        maxHeap.add(17);
        maxHeap.add(15);
        maxHeap.add(52);
        while (!maxHeap.isEmpty()){
            System.out.print(maxHeap.extractMax()+" ");
        }
//        System.out.println(maxHeap);
//        System.out.println(maxHeap.extractMax());
//        System.out.println(maxHeap);
    }
}
